﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
	<link rel="stylesheet" href="/Style/Default.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<div class="primary">
		<div class="box">
			<div class="title">
				<img class="title-logo" src="/Images/title-logo.png" alt="" />
				<h2>Đăng ký học phần</h2>
			</div>
			<div class="content">
				<h3>Thông tin đăng ký</h3>
				<table class="reg-info">
					<tr>
						<td><p>
							<span class="label">Năm học:</span>
							<span id="lbNamHoc" runat="Server" class="value"></span>
						</p></td>

						<td><p>
							<span class="label2">Tín chỉ tối đa:</span>
							<span id="lbMaxTC" runat="Server" class="value"></span>
						</p></td>
					</tr>
					<tr>
						<td><p>
							<span class="label">Học kỳ:</span>
							<span id="lbHocKy" runat="Server" class="value"></span>
						</p></td>
						
						<td><p>
							<span class="label2">Tín chỉ tối thiểu:</span>
							<span id="lbMinTC" runat="Server" class="value"></span>
						</p></td>
					</tr>
				</table>

				<div class="tab-container">
					<h3>Danh sách lớp đã đăng ký</h3>
					<asp:GridView ID="GridView1" runat="server" CssClass="tab-class" 
						AutoGenerateColumns="False">
						<Columns>
							<asp:BoundField DataField="stt" HeaderText="STT" >
							<HeaderStyle CssClass="col1" />
							</asp:BoundField>

							<asp:BoundField DataField="mamonhoc" HeaderText="Mã môn học">
							<HeaderStyle CssClass="col2" />
							</asp:BoundField>

							<asp:BoundField DataField="tenmonhoc" HeaderText="Tên môn học" >
							<HeaderStyle CssClass="col3" />
							</asp:BoundField>

							<asp:BoundField DataField="tinchi" HeaderText="TC" >
							<HeaderStyle CssClass="col4" />
							</asp:BoundField>

							<asp:BoundField DataField="lop" HeaderText="Lớp" >
							<HeaderStyle CssClass="col5" />
							</asp:BoundField>

							<asp:BoundField DataField="sisotoida" HeaderText="Sỉ số" >
							<HeaderStyle CssClass="col6" />
							</asp:BoundField>

							<asp:BoundField DataField="dadangky" HeaderText="Đã ĐK" >
							<HeaderStyle CssClass="col7" />
							</asp:BoundField>

							<asp:TemplateField>
								<HeaderStyle CssClass="col8" />
								<ItemTemplate>
									<asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/refuse.png" 
										oncommand="btnCancel_Command" CommandArgument='<%# Eval("malop") %>' />
								</ItemTemplate>
							</asp:TemplateField>

						</Columns>
					</asp:GridView>
				</div>

				<div class="tab-container">
					<h3>Danh sách lớp có thể đăng ký</h3>
					<asp:GridView ID="GridView2" runat="server" CssClass="tab-class" 
						AutoGenerateColumns="False">
						<Columns>
							<asp:BoundField DataField="stt" HeaderText="STT" >
							<HeaderStyle CssClass="col1" />
							</asp:BoundField>

							<asp:BoundField DataField="mamonhoc" HeaderText="Mã môn học">
							<HeaderStyle CssClass="col2" />
							</asp:BoundField>

							<asp:BoundField DataField="tenmonhoc" HeaderText="Tên môn học" >
							<HeaderStyle CssClass="col3" />
							</asp:BoundField>

							<asp:BoundField DataField="tinchi" HeaderText="TC" >
							<HeaderStyle CssClass="col4" />
							</asp:BoundField>

							<asp:BoundField DataField="lop" HeaderText="Lớp" >
							<HeaderStyle CssClass="col5" />
							</asp:BoundField>

							<asp:BoundField DataField="sisotoida" HeaderText="Sỉ số" >
							<HeaderStyle CssClass="col6" />
							</asp:BoundField>

							<asp:BoundField DataField="dadangky" HeaderText="Đã ĐK" >
							<HeaderStyle CssClass="col7" />
							</asp:BoundField>

							<asp:TemplateField>
								<HeaderStyle CssClass="col8" />
								<ItemTemplate>
									<asp:ImageButton ID="btnRegister" runat="server" ImageUrl="~/Images/accept.png" 
										oncommand="btnRegister_Command" CommandArgument='<%# Eval("malop") %>' />
								</ItemTemplate>
							</asp:TemplateField>

						</Columns>
					</asp:GridView>
				</div>

			</div>
		</div>
	</div>

	<div class="secondary">
		<div class="box2">
			<div class="title">
				<h2>Thông tin sinh viên</h2>
			</div>
			<div class="content">
				<p>Tên: <span runat="Server" id="spanHoTen" class="name">Lorem ip sum</span></p>
				<p>Mã số: <span class="student-code">
					<asp:LoginName ID="LoginName1" runat="server" />
				</span></p>
			</div>
		</div>
	</div>

</asp:Content>

